#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTimer>
#include "player.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    void Init();

    void Timeout();

    void PlayNextMusic();

private slots:
    void on_BrowerButton_clicked();

    void on_timeEdit1_timeChanged(const QTime &time);

    void on_timeEdit2_timeChanged(const QTime &time);

    void on_timeEdit3_timeChanged(const QTime &time);

private:
    Ui::MainWindow *ui;
    Player* m_pMusicPlayer;

    QTimer m_timer;

    QVector<QString> m_listFile;
    QString m_sPlayDir;

    QMap<int,QTime> m_listTime;
};

#endif // MAINWINDOW_H
